<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../vue.js"></script>
    <link rel="stylesheet" href="./a.css" />
</head>

<body>
    <div id="app">
        <p :class="list">动态切换对象</p>
        <p :class="lists">动态切换对象</p>
        <p :class="arr">动态切换style</p>
    </div>

    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                list: {
                    a: true,
                    b: false,
                    c: true,
                },
                lists: ["aa", "bb", "cc"],
                arr: [(backgroundColor = "pink")],
            },
        });
    </script>
</body>

</html>